package com.milk.service.admin.dao;

import java.util.List;
import java.util.Map;

import com.milk.model.entity.admin.Function;


public interface FunctionDao {

	void save(Function function);
	
	int update(Function function);
	
	int delete(long funcId);
	
	List<Function> query(Map<String,Object> params);
	
	Function findByMap(Map<String,Object> params);
	
	void roleFunctionSave(List<Map<String,Object>> params);
	
	int deleteFunctionByRoleId(long roleId);
	
	int deleteFunctionByFunctionId(long funcId);
}
